﻿using System.Collections.Generic;
using cludg.Web.Core.Captcha;

namespace cludg.Web.Core.ViewModels
{
	public class BaseModel
	{
		private readonly SecurityInfo _securityInfo = new SecurityInfo();
		public SecurityInfo SecurityInfo { get { return _securityInfo; } }

		private readonly Menu _navigationMenu = new Menu();
		public Menu NavigationMenu { get { return _navigationMenu; } }

		private readonly Alert _alert = new Alert { Type = MessageType.None};
		public Alert Alert { get { return _alert; } }

		private readonly IDictionary<string, object> Values = new Dictionary<string, object>();
		public object this[string key]
		{
			get { return Values.ContainsKey(key) ? Values[key] : null; }
			set { Values[key] = value; }
		}

		public string SiteName { get; set; }
	}
}